package com;

import java.sql.ResultSet;
import java.sql.SQLException;

public class PurchaseUserBean {

	private String purordnum,purinnum,purdate,supname,supcode,supinnum,prodname;
	private double purprodrate,purnetamount,purtaxcat,purtaxamount,purtransport,purothercosts,purtotalamount;
	private int purprodquantity,purcredit;
	public String getPurchaseOrderNumber()
	{
		return purordnum;
	}
	public void setPurchaseOrderNumber(String newpurordnum)
	{
		purordnum=newpurordnum;
	}
	
	public String getPurchaseInvoiceNumber()
	{
		return purinnum;
	}
	public void setPurchaseInvoiceNumber(String newpurinnum)
	{
		purinnum=newpurinnum;
	}
	
	public String getPurchaseDate()
	{
		return purdate;
	}
	public void setPurchaseDate(String newpurdate)
	{
		purdate=newpurdate;
	}
	
	public String getSupplierName()
	{
		return supname;
	}
	public void setSupplierName(String newsupname)
	{
		supname=newsupname;
	}
	
	public String getSupplierCode()
	{
		return supcode;
	}
	public void setSupplierCode(String newsupcode)
	{
		supcode=newsupcode;
	}
	
	public String getSupplierInvoiceNumber()
	{
		return supinnum;
	}
	public void setSupplierInvoiceNumber(String newsupinnum)
	{
		supinnum=newsupinnum;
	}
	
	public String getProductName()
	{
		return prodname;
	}
	public void setProductName(String newprodname)
	{
		prodname=newprodname;
	}
	
	public int getPurchaseProdQuantity()
	{
		return purprodquantity;
	}
	public void setPurchaseProdQuantity(int newprodquantity)
	{
		purprodquantity=newprodquantity;
	}
	
	public double getPurchaseProdRate()
	{
		return purprodrate;
	}
	public void setPurchaseProdRate(double newprodrate)
	{
		purprodrate=newprodrate;
	}
	
	public double getPurchaseNetAmount()
	{
		return purnetamount;
	}
	public void setPurchaseNetAmount(double newnetamount)
	{
		purnetamount=newnetamount;
	}
	
	public double getPurchaseTaxCategory()
	{
		return purtaxcat;
	}
	public void setPurchaseTaxCategory(double newtaxcat)
	{
		purtaxcat=newtaxcat;
	}
	
	public double getPurchaseTaxAmount()
	{
		return purtaxamount;
	}
	public void setPurchaseTaxAmount(double newtaxamount)
	{
		purtaxamount=newtaxamount;
	}
	
	public double getPurchaseTransport()
	{
		return purtransport;
	}
	public void setPurchaseTransport(double newtransport)
	{
		purtransport=newtransport;
	}
	
	public double getPurchaseOtherCosts()
	{
		return purothercosts;
	}
	public void setPurchaseOtherCosts(double newothercosts)
	{
		purothercosts=newothercosts;
	}
	
	public double getPurchaseTotalAmount()
	{
		return purtotalamount;
	}
	public void setPurchaseTotalAmount(double newtotalamonut)
	{
		purtotalamount=newtotalamonut;
	}
	
	public int getPurchaseCreditLimit()
	{
		return purcredit;
	}
	public void setPurchaseCreditLimit(int newlimit)
	{
		purcredit=newlimit;
	}

/*	public PurchaseUserBean (ResultSet rs) throws SQLException
	   {
	purinnum=rs.getString("pvinnum");
	purdate=rs.getString("date");
	supname=rs.getString("pvsname");
	supcode=rs.getString("pvscode");
	  prodname=rs.getString("pvstname");
	  purprodquantity=rs.getInt("pvqua");
	  purprodrate=rs.getDouble("pvrate");
	  purnetamount=rs.getDouble("pvneta");
	  purtaxcat=rs.getDouble("pvtaxcat");
	  purtaxamount=rs.getDouble("pvtaxa");
	  purtransport=rs.getDouble("pvtrans");
	  purothercosts=rs.getDouble("pvot");
	  purtotalamount=rs.getDouble("pvtota");
	  purcredit=rs.getInt("pvcreadlim");
	   }
*/
}
